//*****************************************************************************
//
// ABEC3 data file
// Project: A7 by Florent Halgatte
//
//*****************************************************************************

Control_Solver
  f1=20;  f2=500;  NumFrequencies=40;  Abscissa=log;
  MeshFrequency=1500Hz
  Meshing=BiFu
  Sym=x; 
  Dim=3D

//MeshFile_Properties
  
MeshFile_Properties "MM6"
  MeshFileAlias=M6
  Scale=1mm
  Shift= -42.25mm, 178.94mm, -1066.8mm
  
//Subdomain_Properties

Subdomain_Properties "Interior"
 Subdomain=1
 ElType=Interior
  
Subdomain_Properties "Exterior"
 Subdomain=3
 ElType=Exterior
 
Subdomain_Properties "Interior horn"
 Subdomain=2
 ElType=Interior
 
Subdomain_Properties "Throat chamber"
 Subdomain=4
 ElType=Interior

//Elements

Infinite_Baffle
  SubDomain=3
  IBPlane=y                  // Floor reflection

Elements "Box_out"
  SubDomain=3
  MeshFileAlias=M6
  Color=Teal
  100 Mesh  Include 10 11 16 31         //17 // dessous

Elements "Box_in"
  SubDomain=1
  MeshFileAlias=M6  //M5  MODJP
  100 Mesh  Include  6 7 8 20 21 22 23 24 25 26 27 32 33 34 35

WallImpedance "Enclosure Damping"
  RefElements="Box_in"
  ImpType=Damping
  Value=0.01

Elements "Vent"
  SubDomain=1
  MeshFileAlias=M6
  EdgeLength=70mm
  101 Mesh  Include 14 15 30
  
WallImpedance "Vent Damping"
  RefElements="Vent"
  ImpType=Damping
  Value=0.1
  
Elements "Horn"
  SubDomain=2
  MeshFileAlias=M6
  Color = 255,69,0
  EdgeLength=60mm
  102 Mesh  Include 12 13 18 19 29
  
Elements "Throat chamber"
  SubDomain=4
  MeshFileAlias=M6
  Color=Yellow
  EdgeLength=40mm
  103 Mesh  Include 5 9 28
  
//Interfaces
  
Elements "Interface_interior_exterior"
  SubDomain=3,1
  MeshFileAlias=M6
  EdgeLength=100mm
  101  Mesh  Include 39
  
Elements "Interface_horn_exterior"
  SubDomain=3,2
  MeshFileAlias=M6
  EdgeLength=100mm
  101  Mesh  Include 49 SwapNormals
  
Elements "Interface_throat_chamber_horn"
  SubDomain=2,4
  MeshFileAlias=M6
  EdgeLength=50mm
  101  Mesh  Include 51
 
//Diaphragm 

Diaphragm  "Front"
  Position= MeshFileAlias=M6 Include 3 // Position by mesh-file
  DrvGroup=1001       // Driving group link to observation stage
  SubDomain=4         // Front side belongs to sub-domain 2
  EdgeLength=60mm       
  NoBaffle
  //Simple=true         // Simple model
  Side=Front          // Creates elements for the front side of the diaphragm
  dD=336.55mm            // Diameter of cone
  tD1=70mm            // Inner depth of cone to base of dust cap
  dD1=100mm           // Diameter of dust cap
  hD1=30mm            // Height of dust cap
  hD2=85mm            // Height of total cone on the outside
  dVC=50mm            // Diameter of voice coil
  hVC=5mm             // Height of voice coil
  Shift= 0, 0, -8mm
  
Diaphragm  "Rear"
  RefDiaphragm="Front"
  DrvGroup=1002      // Driving group link to observation stage
  SubDomain=1        // Front side belongs to sub-domain 1
  Position= MeshFileAlias=M6 Include 3 // Position by mesh-file
  Side=Rear          // Creates elements for the front side of the diaphragm
  t1=-12mm
  Shift= 0, 0, -8mm